package com.itetchologyandenglish.home.service;

import com.github.pagehelper.PageInfo;
import com.itetchologyandenglish.home.enetity.Company;
import com.itetchologyandenglish.home.enetity.Result;
import com.itetchologyandenglish.home.mapper.CompanyMapper;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

public interface CompanyService {

    public PageInfo searchCompany(String companyName, String companyProject,  String searchbegin, String searchend, Integer limit, Integer page,Integer isvip);

    boolean deleteNormalCompany(Integer companyId);

    Company findNormaoCompanyById(Integer companyId);

    boolean updateNormalcompany(Company company);

    boolean upgradetovip(Integer companyid, Date vipbegin, Date vipend);

    boolean insertVipCompany(Company company);

    boolean updateVipCompany(Company company);

//    List<Company> findVipCompanyByCompanyName(String companyName);
     Company  findVipCompanyByCompanyName(String companyName);
    List<Company> findVipCompanyByUserName(String userName);

}
